package com.jxstjh.conch.handler.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.jxstjh.conch.common.domain.TaskInfo;
import com.jxstjh.conch.common.enums.AnchorStateEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 去重操作参数
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeduplicationParam {

    /**
     * 消息体对象
     */
    private TaskInfo taskInfo;

    /**
     * 去重时间
     */
    @JSONField(name = "time")
    private Long deduplicationTime;

    /**
     * 达到去重条件的次数
     */
    @JSONField(name = "num")
    private Integer countNum;

    /**
     * 去重类型标识(用于数据埋点)
     */
    private AnchorStateEnum anchorState;
}